<html>
	<head>
		<meta charset="UTF-8">
		<title>工单查看</title>
		<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
		<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/color.css">
		<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/demo/demo.css">
		<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.min.js"></script>
		<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
	</head>
	<body>
		<a href="/userlist" class="easyui-linkbutton"  plain="true" onclick="newUser()">用户设置</a>
		<a href="/setting" class="easyui-linkbutton"  plain="true" onclick="newUser()">系统设置</a>
		<br/>
		<a href="/?pageSize=10&pageNo=1&processedFlag=1" class="easyui-linkbutton"  plain="true">成功接收工单</a>
		<a href="/?pageSize=10&pageNo=1&processedFlag=0" class="easyui-linkbutton"  plain="true">未成功接收工单</a>
		<a href="/?pageSize=10&pageNo=1" class="easyui-linkbutton"  plain="true">全部工单</a>
		<table id="dg" title="已自动接工单" class="easyui-datagrid" style="width:800px;height:320px"
            toolbar="#toolbar" pagination="false"
            rownumbers="true" fitColumns="true" singleSelect="true">
			<thead>
				<tr>
					<th field="sheetId" width="50">工单id</th>
					<th field="sheetTitle" width="50">工单标题</th>
					<th field="sheetType" width="50">工单类型</th>
					<th field="sheetTime" width="50">发现时间</th>
					<th field="processedFlag" width="50">是否已处理</th>
					<th field="crud" width="50">操作</th>
				</tr>
				
			</thead>
			<tbody>
				{% for sheet in sheets %}
				<tr>
					<td>{{sheet.sheetid}}</td>
					<td>{{sheet.title}}</td>
					<td>{{sheet.sheetType}}</td>
					<td>{{sheet.sheetTime}}</td>
					<td>
					{% if sheet.processedFlag==1 %}
						<font color="green">是</font>
					{% endif %}
					{% if sheet.processedFlag==0 %}
						
						<font color="red">否</font>
					{% endif %}
					</td>
					<td>
						<a href="/deleteSheet?id={{sheet.id}}&pageSize={{pageSize}}&pageNo={{pageNo}}&processedFlag={{processedFlag}}" class="easyui-linkbutton" iconCls="icon-remove" plain="true">删除</a>
					</td>
				</tr>
				
				{% endfor %}
			</tbody>
		</table>
		
		<a href="/?pageSize={{pageSize}}&pageNo={{pageNo-1}}&processedFlag={{processedFlag}}" class="easyui-linkbutton"  plain="true">上一页</a>
		<a href="/?pageSize={{pageSize}}&pageNo={{pageNo+1}}&processedFlag={{processedFlag}}" class="easyui-linkbutton"  plain="true">下一页</a>
	</body>
</html>